package TestDemo;

public class Test {
    public static void main(String[] args) {
        MyBinaryTree myBinaryTree = new MyBinaryTree();
        myBinaryTree.createBinaryTreeN();
        /*myBinaryTree.preOrder();
        myBinaryTree.inOrder();
        myBinaryTree.postOrder();
        myBinaryTree.levelOrder();*/
        /*int k = myBinaryTree.getKLevelNode(4);
        System.out.println(k);*/
        //System.out.println(myBinaryTree.height());
        /*System.out.println(myBinaryTree.size());
        System.out.println(myBinaryTree.getLeafNode());*/
        TreeNode treeNode = myBinaryTree.find(71);
        System.out.println(treeNode.val);
    }
}
